package com.project.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project.entity.Staff;
import com.project.service.StaffService;
import com.project.mapper.StaffMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author lenovo
 * @description 针对表【t_staff】的数据库操作Service实现
 * @createDate 2023-01-15 01:54:25
 */
@Service
public class StaffServiceImpl extends ServiceImpl<StaffMapper, Staff> implements StaffService {

    @Autowired
    private StaffMapper staffMapper;

    @Override
    public List<Staff> list(Map<String, Object> map) {
        return staffMapper.list(map);
    }

    @Override
    public long getTotal(Map<String, Object> map) {
        return staffMapper.getTotal(map);
    }

    @Override
    public List<Staff> getList() {
        return staffMapper.getList();
    }
}




